package cn.stl.basic.mapper;

import cn.stl.basic.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface BaseMapper<T> {
    void save(T t);

    void  remove(Long id);

    void update(T t);

    T loadById(Long id);

    List<T> loadAll();

    Long queryCount(BaseQuery baseQuery);

    List<T> queryData(BaseQuery baseQuery);

    void patchDelete(List<Long> ids);
}
